From 4037ef392f7a8a2e586fcba000dee7d70883c765 Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Tue, 20 Sep 2005 09:43:29 +0000 Subject: [PATCH] Fix vnc configuration issue for creating vmx guest. Signed-off-by: Xiaofeng Ling Signed-off-by: Christian Limpach --- tools/python/xen/xend/image.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py index 6d7f363ffd..e4837e27cd 100644 --- a/tools/python/xen/xend/image.py +++ b/tools/python/xen/xend/image.py @@ -300,6 +300,7 @@ class VmxImageHandler(ImageHandler): """ self.parseMemmap() self.createDomain() + self.dmargs += self.configVNC(sxp.child_value(self.vm.config, 'image')) def buildDomain(self): # Create an event channel @@ -383,10 +384,13 @@ class VmxImageHandler(ImageHandler): instance = sxp.child_value(vtpminfo, 'instance') ret.append("-instance") ret.append("%s" % instance) + return ret + def configVNC(self, config): # Handle graphics library related options vnc = sxp.child_value(config, 'vnc') sdl = sxp.child_value(config, 'sdl') + ret = [] nographic = sxp.child_value(config, 'nographic') if nographic: ret.append('-nographic') -- 2.30.2